ComponentOne Windows 7 Control Pack for WinForms
RegisterFileAssociations(String,String,String,String[]) Method



C1.Win.C1Win7Pack.4 Assembly > C1.Win.C1Win7Pack Namespace > C1TaskbarButton Class > RegisterFileAssociations Method : RegisterFileAssociations(String,String,String,String[]) Method
A friendly name for the data format, suitable to display to a user.
The path to the default icon, such as, "systemroot\system32\imageres.dll,15".
The command and arguments to be used when opening a shortcut to a document, such as, '"C:\Program Files\Paint.NET\PaintDotNet.exe" "%1"'.
The extensions to register, such as '.png'.
Registers file associations for the current application.
Syntax
Public Overloads Sub RegisterFileAssociations( _
   ByVal friendlyName As String, _
   ByVal defaultIcon As String, _
   ByVal openWithCmd As String, _
   ByVal ParamArray extensions() As String _
) 
Dim instance As C1TaskbarButton
Dim friendlyName As String
Dim defaultIcon As String
Dim openWithCmd As String
Dim extensions() As String
 
instance.RegisterFileAssociations(friendlyName, defaultIcon, openWithCmd, extensions)
public void RegisterFileAssociations( 
   string friendlyName,
   string defaultIcon,
   string openWithCmd,
   params string[] extensions
)
public:
void RegisterFileAssociations( 
   String^ friendlyName,
   String^ defaultIcon,
   String^ openWithCmd,
   ... array<String^>^ extensions
) 

Parameters

friendlyName
A friendly name for the data format, suitable to display to a user.
defaultIcon
The path to the default icon, such as, "systemroot\system32\imageres.dll,15".
openWithCmd
The command and arguments to be used when opening a shortcut to a document, such as, '"C:\Program Files\Paint.NET\PaintDotNet.exe" "%1"'.
extensions
The extensions to register, such as '.png'.
See Also

Reference

C1TaskbarButton Class
C1TaskbarButton Members
Overload List